package Fecse;

public class TestOne {
    public void change1(int i){
        i=1234;
    }//传输副本，不存值
    public void chang2(BirthDate b){
        b=new BirthDate(22,3,4004);
    }
    public void change3(BirthDate b){
        b.setDay(22);
    }

    public static void main(String[] args){
        Tesetr p=new Tesetr();
        int date=9;
        BirthDate d1=new BirthDate(7,7,1970);
        BirthDate d2=new BirthDate(1,1,2009);
        p.change1(date);
        p.chang2(d1);
        p.change3(d2);
        System.out.println("date="+date);
        d1.diaplay();//输出
        d2.diaplay();
    }
}
